package com.pureut.equipment.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.pureut.equipment.domain.PatrolWorkOrder;
import com.pureut.equipment.domain.dto.PatrolWorkOrderDto;
import com.pureut.equipment.domain.vo.PatrolWorkOrderVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/***
 *
 * Author: 巡检工单mapper
 * Date:2023/04/26 13:46
 * @DESC
 */
@Mapper
public interface PatrolWorkOrderMapper extends BaseMapper<PatrolWorkOrder> {

    /**
     * 巡检工单列表
     */
    Page<PatrolWorkOrderDto> getList(@Param("patrolWorkOrderVo") PatrolWorkOrderVo patrolWorkOrderVo, @Param("page") Page<PatrolWorkOrderDto> page);

    /**
     * 根据id获取详情
     */
    PatrolWorkOrderDto getDataById(Long id);
}
